var page = chrome.extension.getBackgroundPage();

$(document).ready( function() {
  page.console.log('ready')
});